package com.qf.java2106.pojos;

import java.math.BigDecimal;

/**
 * 菜品实体
 * @author q
 * @version V1.0
 * @date 2021/10/25
 **/
public class Food {

    private Integer foodId;
    private Integer typeId;
    private String foodName;
    private BigDecimal foodPrice;
    private BigDecimal foodVipPrice;
    private String foodImage;
    private String foodDesc;

    //映射关系，映射实体
    //多对一
    /**
     * 关联菜系
     * @return
     */
    private FoodType foodType;

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName;
    }

    public BigDecimal getFoodPrice() {
        return foodPrice;
    }

    public void setFoodPrice(BigDecimal foodPrice) {
        this.foodPrice = foodPrice;
    }

    public BigDecimal getFoodVipPrice() {
        return foodVipPrice;
    }

    public void setFoodVipPrice(BigDecimal foodVipPrice) {
        this.foodVipPrice = foodVipPrice;
    }

    public String getFoodImage() {
        return foodImage;
    }

    public void setFoodImage(String foodImage) {
        this.foodImage = foodImage;
    }

    public String getFoodDesc() {
        return foodDesc;
    }

    public void setFoodDesc(String foodDesc) {
        this.foodDesc = foodDesc;
    }

    public void setFoodType(FoodType foodType) {
        this.foodType = foodType;
    }

    public FoodType getFoodType() {
        return foodType;
    }

    public Food() {
    }

    public Food(Integer foodId, Integer typeId, String foodName, BigDecimal foodPrice, BigDecimal foodVipPrice, String foodImage, String foodDesc) {
        this.foodId = foodId;
        this.typeId = typeId;
        this.foodName = foodName;
        this.foodPrice = foodPrice;
        this.foodVipPrice = foodVipPrice;
        this.foodImage = foodImage;
        this.foodDesc = foodDesc;
    }

    @Override
    public String toString() {
        return "Food{" +
                "foodId=" + foodId +
                ", typeId=" + typeId +
                ", foodName='" + foodName + '\'' +
                ", foodPrice=" + foodPrice +
                ", foodVipPrice=" + foodVipPrice +
                ", foodImage='" + foodImage + '\'' +
                ", foodDesc='" + foodDesc + '\'' +
                '}';
    }
}
